@extends('layouts.adminlayout')

@section('main')


<section class="content">
    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Tạo Khoá Thi <small>Khoá thi</small></h3>
            </div><!-- /.box-header -->
            {{ Form::open(array('route' => 'courses.store','role'=>'form')) }}
            <div class="box-body">
                <div class="form-group">
                    {{ Form::label('ma_khoa_thi', 'Mã Khoá Thi') }}
                    {{ Form::text('ma_khoa_thi',null,array('required','class'=>'form-control')) }}
                </div>
                <div class="form-group">
                    {{ Form::label('ngay_thi', 'Ngày Thi') }}
                    {{ Form::text('ngay_thi',null,array('required','class'=>'form-control','id'=>'ngay_thi')) }}
                </div>
                <div class="form-group">
                    {{ Form::label('HoiDongThi_Id', 'Hội Đồng Thi') }}
                    <select name="HoiDongThi_Id" id="HoiDongThi_Id" class="form-control" required="required">
                        <option value="">Chọn</option>
                        @foreach ($hoi_dong_thi as $hoi_dong_thi)  
                        <option value="{{{$hoi_dong_thi->id}}}">{{{$hoi_dong_thi->ten_hoi_dong_thi}}}</option>
                        @endforeach
                    </select>

                </div>
                <div class="form-footer">
                    {{ Form::submit('Tạo Khoá Thi', array('class' => 'btn btn-info')) }}
                    {{ link_to_route('courses.index', 'Huỷ', null, array('class' => 'btn')) }}
      
                </div>
                {{ Form::close() }}

                <br>
                @if ($errors->any())
                    {{ implode('', $errors->all('<div class="error callout callout-danger">:message</div>')) }}
                @endif
            </div>
        </div>
        </div>
</section>
@stop


